package com.clj.blesample.http;


import com.clj.blesample.entity.PageResult;
import com.clj.blesample.entity.RecordInfo;
import com.clj.blesample.entity.Result;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface ApiService {
    //上传坐标
    @POST("LR_MES/Interaction/UpdateWeldLocation")
    Observable<Result<Object>> updateButtRecord(@Body Map<String, Object> params);

    //异常数据上传
    @POST("LR_MES/Interaction/AddAnomalyRecord")
    Observable<Result<Object>> updateAnomaly(@Body Map<String, Object> params);

    //电熔记录查询
    @GET("LR_MES/Interaction/GetAnalysisResult")
    Observable<Result<List<RecordInfo>>> getAnalysisResult(@QueryMap Map<String, Object> params);
}
